package org.testis.testdriver;

/**
 *
 * @author barisergun
 */
public class ExecutionInterventionStateSingleton {

    private static ExecutionInterventionStateSingleton m_subject;
    private AtofEnumaration.ExecutionInterventionType m_type;
    private AtofEnumaration.ExecutionInterventionType m_previoustype = null;

    private ExecutionInterventionStateSingleton() {
        m_type = AtofEnumaration.ExecutionInterventionType.Resume;
    }

    public static ExecutionInterventionStateSingleton createInstance() {
        if (m_subject == null) {
            m_subject = new ExecutionInterventionStateSingleton();

        }

        return m_subject;
    }

    public static ExecutionInterventionStateSingleton getInstance() {
        return m_subject;
    }

    public synchronized void setInterventionState(
            AtofEnumaration.ExecutionInterventionType val) {
        m_type = val;
    }

    public AtofEnumaration.ExecutionInterventionType getInterventionType() {
        return m_type;
    }
}
